package com.SinaMicroblogging.ApplicationConfig;

import java.io.InputStream;

import com.SinaMicroblogging.R;
import com.SinaMicrobloggingApi.Configuration.SinaAPIUrlConfig;
import com.SinaMicrobloggingApi.Model.UserInfoModel;

import android.app.Application;

public class ApplicationConfig extends Application {

	private UserInfoModel user = null;

	public UserInfoModel getUser() {
		return user;
	}

	public void setUser(UserInfoModel user) {
		this.user = user;
	}

	@Override
	public void onCreate() {
		// TODO Auto-generated method stub
		super.onCreate();
		initConfigruation();

	}

	private void initConfigruation() {
		InputStream is = this.getResources().openRawResource(R.raw.urlconfig);
		SinaAPIUrlConfig.initCofigruation(is);
	}
}
